** Types and frequency of MW events 
** JHL

*************************************
** Set up workspace
*************************************
version 14.0
clear all
set more off

cd "${path_home}"
** log using "${path_log}/a06_mw_enact_announce_vz", text replace

adopath + ../programs
ssc install blindschemes, replace all

*************************************
** Start work here
*************************************
timer on 1

use "${path_big_dta}/mw/announcement/ann_edited_0615", clear 

** TABLE IN PAPER *** 
** MW changes by year and type 
graph bar (sum) fed_leg state_leg ballot index, over(year) stack legend(lab(1 "Federal Legislation") lab(2 "State Legislation") lab(3 "State Ballot") lab(4 "State Indexation")) graphregion(color(white)) scheme(plottig)
translate @Graph "${path_out}/graphs/mw_changes_year_type.pdf", name("Graph") replace

** Black and white 
graph bar (sum) fed_leg state_leg ballot index, over(year) stack legend(lab(1 "Federal Legislation") lab(2 "State Legislation") lab(3 "State Ballot") lab(4 "State Indexation")) graphregion(color(white)) scheme(s2mono)
translate @Graph "${path_out}/graphs/mw_changes_year_type_bw.pdf", name("Graph") replace

*************************************
** Close workspace
*************************************
timer off 1
timer list 1 
** log close
